﻿namespace DataService.Enums;

public enum QUALITIES : short
{
    // Fields
    LIMIT_CONST = 3,
    LIMIT_HIGH = 2,
    LIMIT_LOW = 1,
    //LIMIT_MASK = 3,
    //LIMIT_OK = 0,
    QUALITY_BAD = 0,
    QUALITY_COMM_FAILURE = 0x18,
    QUALITY_CONFIG_ERROR = 4,
    QUALITY_DEVICE_FAILURE = 12,
    QUALITY_EGU_EXCEEDED = 0x54,
    QUALITY_GOOD = 0xc0,
    QUALITY_LAST_KNOWN = 20,
    QUALITY_LAST_USABLE = 0x44,
    QUALITY_LOCAL_OVERRIDE = 0xd8,
    QUALITY_MASK = 0xc0,
    QUALITY_NOT_CONNECTED = 8,
    QUALITY_OUT_OF_SERVICE = 0x1c,
    QUALITY_SENSOR_CAL = 80,
    QUALITY_SENSOR_FAILURE = 0x10,
    QUALITY_SUB_NORMAL = 0x58,
    QUALITY_UNCERTAIN = 0x40,
    QUALITY_WAITING_FOR_INITIAL_DATA = 0x20,
    STATUS_MASK = 0xfc,
}
